Formatted strings in query tool