I know you didn't propose $remove as a solution, so it's no offense or anything, but I'd like to point out why exactly $remove is a bad idea to use in cases such as these and similar.
Say his var was:
%var 10 15 16 11
$right(%var,1) = 1
$remove(%var,1) = 0 5 6
In other words, that would screw up the entire variable rather than just delete the last char. In general, one should only use $remove if one doesn't mind all occurences to be removed. If you want to only delete certain matches, then $remove is a not the way to go.