public static void Main()
Console.WriteLine("Please enter your name");
string strName = Console.ReadLine();
Console.WriteLine("Welcome " + strName);
Console.WriteLine("length is " + strName.Length);
Console.WriteLine("===================");
string strTransformation = "My FIrst stRinG.";
Console.WriteLine("transforming UC to lower case: " + strTransformation.ToLower());
Console.WriteLine("transforming LC to upper case: " + strTransformation.ToUpper());
Console.WriteLine("===================");
string strTrim = " my string test ";
Console.WriteLine("removing the white space:" + 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 = "superman@iu.edu";
int atIndex = strEmail.IndexOf("@");
Console.WriteLine("Not a valid email");
Console.WriteLine(strEmail.Substring(0, atIndex));
Console.WriteLine(strEmail.Substring(atIndex+1));
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("===================");