Replace line breaks with spaces instead of empty strings