replacing \n with whitespaces