tidy text file