I’ve not used it myself but from the advanced ChoiceScript page, there’s this:
Characters: You can extract the characters (letters/numerals) out of a variable, like this:
*temp word "xyzzy"
*temp first_letter word#1
*temp second_letter word#2
The first letter of the word "${word}" is ${first_letter} and the second letter of the word is ${second_letter}.
That’s the base I’m working off. I vividly remember someone once posting a template for checking the last few letters of an input, but I cannot locate that again ;_;
The above would yield the last 3 characters of the string. Note that I subtracted 2 instead of 3, because the starting and ending points are inclusive.