Strip newlines to ensure better output formatting