Is there a function I can apply to a string that will return true of false if a string contains a character.
I have strings with one or more character options such
You can use the IndexOf method, which has a suitable overload for string comparison types:
IndexOf
if (def.IndexOf("s", StringComparison.OrdinalIgnoreCase) >= 0) ...
Also, you would not need the == true, since an if statement only expects an expression that evaluates to a bool.
== true
bool