rearranging and fixing text in search results