Replace new lines with spaces