isxdigit is crossplatform, not ishexnumber