replaced to isdigit()