<mvt:assign name="g.myvariable" value=" 'The length of this string is: ' $ len('hello world') " /> &mvt:global:myvariable;