remove whitespace at end of file