changed isnumeric() to isdigit()