public static void Main()
Console.WriteLine("Please enter your name");
string name = Console.ReadLine();
Console.WriteLine("The length of \"{0}\" is {1}", name, name.Length);
Console.WriteLine("===================");
string strTransformation = "My FIrst stRinG.";
Console.WriteLine("The lowercase of \"{0}\" is \"{1}\"", strTransformation, strTransformation.ToLower());
Console.WriteLine("The lowercase of \"{0}\" is \"{1}\"", strTransformation, strTransformation.ToUpper());
Console.WriteLine("===================");
string strTrim = " my string test ";
Console.WriteLine("The trim of \"{0}\" is \"{1}\"", strTrim, strTrim.Trim());
Console.WriteLine("===================");
string strSample = "Is it a book?";
bool bolHasPeriod = false;
bolHasPeriod = strSample.Contains(".");
Console.WriteLine("bolHasPeriod:" + bolHasPeriod);
bool bolIsStartWithIs = false;
bolIsStartWithIs = strSample.StartsWith("Is");
Console.WriteLine("bolIsStartWithIs:" + bolIsStartWithIs);
bool bolIsQuestion = false;
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 indexOfAt = strEmail.IndexOf("@");
string username = strEmail.Substring(0, indexOfAt);
string domain = strEmail.Substring(indexOfAt+1);
Console.WriteLine("username={0}, domain={1}", username, domain);
Console.WriteLine("===================");
string strPhone = "812.212.3456";
Console.WriteLine("strPhone:" + strPhone);
strPhone = "812.212.3456";
Console.WriteLine("strPhone:" + strPhone);
Console.WriteLine("strPhone:" + strPhone);
Console.WriteLine("===================");