isValidNumber support for numeric strings

Reference: http://stackoverflow.com/a/1830844