Use isdigit which is more flexible