added function newline_to_space2