Function checkStringContains

Results in "validity" for any string that contains any of the specified values