public static void Main()
Console.WriteLine("jamin patel - A");
Console.WriteLine("53003205029\n");
string str = " Welcome to Programming";
int indexOf = str.IndexOf("l");
int lastIndex = str.LastIndexOf("m");
bool startsWith = str.StartsWith("S");
bool endsWith = str.EndsWith("g");
string[] s1 = { "to", "join", "a", "string" };
string[] words = str.Split(' ');
Console.WriteLine("Original String={0}", str);
Console.WriteLine("First Index of l={0}. \nLast Index of m={1}", indexOf, lastIndex);
Console.WriteLine("Replace String={0}", str.Replace("m", "w"));
Console.WriteLine("Upper Case={0}. \nLower Case={1}", str.ToUpper(), str.ToLower());
Console.WriteLine("Length of String={0}", str.Length);
Console.WriteLine("Removal from string={0}", str.Remove(3));
Console.WriteLine("Start with 'S' ={0}. \nEnds with g' ={1}", startsWith, endsWith);
Console.WriteLine("Using Trim={0}. \nUsing Trim End={1}. \nUsing Trim Start={2}", str.Trim(), str.TrimEnd(ch), str.TrimStart(ch));
Console.WriteLine("Join method={0}", string.Join("-", s1));
Console.WriteLine("Substring={0}", str.Substring(13));
Console.WriteLine("PadLeft={0}. \n PadRight={1}", str.PadLeft(35, '*'), str.PadRight(35, '*'));
Console.WriteLine("Insert method={0}", str.Insert(7, "#"));
Console.WriteLine("\n---Using Split method---");
foreach (string word in words)