The System object has all the text manipulation functions that you may need.
To remove a character from the end of a string set it's text to left(Text.Text, len(Text.Text)-1).
Develop games in your browser. Powerful, performant & highly capable.
Remove the effect for the object "pRed" and the .cap works.