remove whitespace on file ending