cleaning up text files