transform newlines into spaces