Warning Twig version 2.x is no longer maintained.
capitalize
The capitalize
filter capitalizes a value. The first character will be
uppercase, all others lowercase:
1 2 3
{{ 'my first car'|capitalize }}
{# outputs 'My first car' #}