static void Main(string[] args) { string str = "tahlilecode"; bool x = str.Contains("le"); Console.WriteLine(x); Console.ReadKey(); }