improve the isNumericString function