Remove new lines from the search results when outputting to the console