avoid extra .strip() in version.py via trivial refactor