trim data file