How to check how many characters there are in my string? Lets say I have a simple string:

{% set string = "Simple String" %}


How to get number of characters of my string?
Twig has a length filter that can help you with that:

{% set stringLength = "Simple String" | length %}


Note that this also works on arrays to give you the number of items in the array.