var str = "Some String"; public string Substring(int startIndex); var valueOfSubstring = str.Substring(5); public string Substring(int startIndex, int length); var valueOfSubstring = str.Substring(5, 3);