Use isspace and isdigit