removing whitespace at end of file