replacing \n by space character