Removes whitespace from eof