isdigit and isspace fixes