replace newline with space to avoid words mashed together