public static void Main()
string cat1 = "The domestic cat is a small, typically furry, carnivorous mammal. They are often called house cats.";
string cat = "The domestic cat is a small, typically furry, carnivorous mammal. They are often called house cats.";
cat = cat.Replace("cat","dog");
Console.WriteLine("The string above has {0} characters long",cat.Length);
string catending = cat1.Substring(66,33);
Console.WriteLine(catending);
Console.WriteLine(cat1.IndexOf("cat"));
string cat5 = cat1.Insert(66, "There are a number of different breeds. ");
string cat6 = cat1.Remove(0,66);
string[] Cat = new string[4];
Cat[0] = cat1.Substring(0, 29);
Cat[1] = cat1.Substring(29,17);
Cat[2] = cat1.Substring(46,20);
Cat[3] = cat1.Substring(66,33);
Console.WriteLine(Cat[0]);
Console.WriteLine(Cat[1]);
Console.WriteLine(Cat[2]);
Console.WriteLine(Cat[3]);
Console.WriteLine("The original string is - {0}",cat1);