streamlined format_search_query