public static void Main()
Console.WriteLine("Please enter your name");
string strName= Console.ReadLine();
Console.Write("Welcome " + strName);
Console.WriteLine("\nLength = " + strName.Length);
Console.WriteLine("===================");
string strTransformation = "My FIrst stRinG.";
Console.WriteLine(strTransformation.ToLower());
Console.WriteLine(strTransformation.ToUpper());
Console.WriteLine("===================");
string strTrim = " my string test ";
Console.WriteLine(strTrim.Trim());
Console.WriteLine("===================");
string strSample = "Is it a book?";
bolHasPeriod = strSample.Contains(".");
Console.WriteLine("bolHasPeriod:" + bolHasPeriod);
bolIsStartWithIs = strSample.StartsWith("Is");
Console.WriteLine("bolIsStartWithIs:" + bolIsStartWithIs);
bolIsQuestion = strSample.EndsWith("?");
Console.WriteLine("bolIsQuestion:" + bolIsQuestion);
strSample = "Indiana University";
intN = strSample.IndexOf("n");
Console.WriteLine("intN:" + intN);
Console.WriteLine("=========================");
string strEmail = "cwliu@iu.edu";
Console.WriteLine("===================");
string strPhone = "812.212.3456";
strPhone = strPhone.Replace(".","*");
Console.WriteLine("strPhone:" + strPhone);
strPhone = "812.212.3456";
strPhone = strPhone.Remove(4,3);
Console.WriteLine("strPhone:" + strPhone);
strPhone = strPhone.Insert(0,"(");
strPhone = strPhone.Insert(4,")");
Console.WriteLine("strPhone:" + strPhone);
Console.WriteLine("===================");