Remove eof lines