added a new character assertion, isDigit