Remove extra lines EOF