upgrade isdigit