added "format" validator that compares a regex to String params

I added a regex format validation check for String params.  I throw an error if the value is coerced to something that is not a kind of String before validation occurs.