It's possible that the code you show is not what you mean: Contains matches the whole string as-is as a substring in the original - so if the input string does not contain every character in the "match string" in exactly the same order and with no intervening characters, the match will return false.
So
"ABCD".Contains("BC")
will return
true
, while
"AB.CD".Contains("BC")
will return
false
.
string.Contains does not support wildcards, so if you want that you will need a Regex, and if you want "contains any of these characters" instead of a string match then you want
IndexOfAny[
^]