cleanup Naneau\SemVer\Version#setPart

minor change instead of checking whether the $part is alphanumeric in two places, perform the check in one method.