CapFirst method (text)

Capitalises the first character.

Syntax

text.CapFirst

Returns the text with the first character capitalised.

Example

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

{{ text1.CapFirst }}, {{ text2.Capfirst }}

The above example would output: Alpha bravo charlie, ABcDeF.