trim newlines when updating version number