public void getChars(string strWords)
{
char[] chrArrSep={' ',','};
string[] strArrWords = strWords.Split(chrArrSep,StringSplitOptions.RemoveEmptyEntries);
foreach (string s in strArrWords)
{
if (s.Contains('o'.ToString()) && s.Contains('t'.ToString()))
{
Console.WriteLine(s);
}
}
}
Hope this will solve your problem.