get a string for 9 character back in c# code example
Example 1: c# get first 5 characters of string
string result = str.Substring(0,5);
Example 2: last two characters of string c#
string str = "Hello World";
string substr = str.Substring(str.Length - 2);