gets the last character of a string
getLastChar(str)
str
input string
the last character of that string.