RightmostCharacter function

Rightmost character of string