Finish search query string generation.