adding "\n"s in the input text