Check out example codes for "get last character of string c#". It will help you in understanding the concepts better.
Code Example 1
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Code Example 2
str = str.Substring(str.Length - 1);
Learn ReactJs, React Native from akashmittal.com