Returns a string containing a specified number of characters from the left side of a string.
public static string Left(this string str, int length)
Required. String expression from which the leftmost characters are returned.
Required. Integer greater than 0. Numeric expression
indicating how many characters to return. If 0, a zero-length string ("")
is returned. If greater than or equal to the number of characters in Str,
the entire string is returned. If str is null, this returns null.
The specified number of characters from the left side of a string.