I would like to replace "fWord" in the string "Input" as case insensitive.
while (FilteredWords.Any(Input.Contains))
{
foreach (string fWord in FilteredWords)
{
Input = Input.Replace(fWord, "****");
}
}
(FilteredWords is a list of strings and Input is the string to "clean") It works, however is case sensitive. How do I make fWord case insensitive at replacing?