get last character in a string
I'm not sure about which language are you using, but in C# it is done like
string s = "clyde";
char e = s[s.Length-1];
and it is very similar in every language.
C#:
string clyde = "clyde";
char last = clyde[clyde.Length - 1];
VB.NET
string clyde = "clyde";
char last = clyde(clyde.Length - 1);
I would do this with linq :-
string clyde = "Clyde";
char lastChar = clyde.Last();
Just my preference.