replace newlines with a space rather than nothing