String operations on variables

Would it be possible to have simple string functions on variables, like Upper() and Lower(), such that you can do the following: Upper($MyVar)?

I would also like to request: FIrstUpper(), FirstLower() (change only first char in the Var)

Did you manage to resolve this? I have also long names in my legend.