trim the version file