replace '\n' with ' ' when triping texts.