Checks if the string is numeric.
Returns true if the string matches a numeric pattern.
True if the string is numeric, false otherwise.