moving asciiDigit function into shared helper