Removing newlines and special characters from search results.