This will be one of those awful ambiguous responses that doesn't really answer your question, but hopefully gets you or someone else started on it.
I've used the `ToString` function in the past in OnSetText in order to adjust characters accordingly. I had a discussion about this function on another thread which has some good tips over
HERE. Hopefully that can get you started.
#XPression