Create String:string (char[]) constructs a new string object using the specified string array
Copy (String) constructs a new string object with the specified string
Comparison functions: Compare (A, A, a, b) and A.compareto are equal to return 0, greater than the return positive, less than the return negative number;
Equals () determines equality
To determine whether it is empty: empty
Lengths: Length
Split (): You can get a series of substrings separated by the specified delimiter (you can specify a number of delimiters, the delimiter can be either a character or a string), join (), and connect some strings with the specified delimiter.
StartsWith (), EndsWith () determines whether to start or end with the specified string
ToUpper (), ToLower () convert case
Take substring Substring (int x, int L) from x followed by L long substring, Substring (int x) take x after all
IndexOf () returns the position of the specified character or string in the current string, and int LastIndexOf () returns the last occurrence of the specified character or string
Insert (int,string) inserts a specified string in the current string, and remove (int,int) deletes the specified number of characters from the specified position
Replace (string,string) string substitution
Trim () removes the specified character from the head and tail of the string, TrimStart () only deletes the string header, and TrimEnd () deletes only the trailing of the string.
Some functions of C # string