remove the `startsWithDigit` parameter, move the initialization `var allDigits = ch >= 0x30 && ch <= 0x39;` below