get rid of c style isdigit