tap: fix isdigit and isspace usage.