TitleCase method (text)

Converts the text to title case.

Syntax

text.TitleCase

Returns the text in title case.

Example

{% Var text1 = 'Alpha bravo charlie' %}
{% Var text2 = 'aBcDeF' %}

{{ text1.TitleCase }}, {{ text2.TitleCase }}

The above example would output: Alpha Bravo Charlie, Abcdef.