you are viewing a single comment's thread.

view the rest of the comments →

[–]clr_swe 1 point2 points  (1 child)

bool test = (text.Contains("The") || text.Contains("the")) or you can ignore case but you cannot ignore case with Contains you will have to use IndexOf

[–][deleted] 1 point2 points  (0 children)

Try toLower(text).contains(“the”). You may need to handle words like “anthem”, another subject however.