use ISDIGIT macro