trim version number