static bool isDigit(String ch) { int charCode = ch.charCode; if (charCode >= 0x0030 && charCode <= 0x0039) return true; return false; }