Do newline replacing for string pasting