cleaned text being written to file