Added the function isDigit