Change variable in Template

Hi,

It is possible to change the content of the template variable: $ alert-> severity

critical
to
CRITICAL or any text

Thanks!

try

{{ strtoupper($varname) }} 

Works!

Thanks