clean text file format