Moved regexp validator to String class as a param and use search instead of match