String phrase = "this is the ultimate string"; Console.WriteLine(phrase.Contains("this")); //returns True Console.WriteLine(phrase.Contains("python")); //returns False