add number checker(judge if a string is an integer or float number)