class Validator {

    public void checkPlayerId(String input) {
        boolean empty = isEmpty(input);
        if (empty || !id.matcher(input).matches()) {
            throw new IllegalArgumentException(String.format("Player id is invalid: '%s'", input));
        }
    }

    public  Validator();

}