getting rid of cruft at the end of the CSV file