Help get last two chars

So how to get last two characters of a string, Let a user type his desired text that will be stored in a string and how to get last two characters of string and put condition according to characters,

like if(lasttwochars == aa)...
Nvm
Topic archived. No new replies allowed.