strip whitespace from npm version