The System.String class has dozens of built-in methods for searching, transforming, and splitting strings.
string s = " Hello, World! ";
s.Length; // 18
s.Trim(); // "Hello, World!"
s.TrimStart(); // "Hello, World! "
s.TrimEnd(); // " Hello, World!"
s.ToUpper(); // " HELLO, WORLD! "
s.ToLower(); // " hello, world! "
s.Replace("World", "C#"); // " Hello, C#! "
string str = "C# is a modern language";
str.Contains("modern"); // true
str.StartsWith("C#"); // true
str.EndsWith("language"); // true
str.IndexOf("modern"); // 9
str.LastIndexOf("a"); // 21
string csv = "Alice,Bob,Carol";
string[] parts = csv.Split(