identifier: Apply isdigit() only to values in valid range.