reformat text files