Modifier: substr
Returns the string beginning at a given position with an optional length. If length not specific, will return the rest of the string.
string: How neat is that?
{{ string | substr:0:3 }}
{{ string | substr:4:4 }}
{{ string | substr:-8:8 }}
How
neat
is that?
Additional Reading
Learn how to use and chain modifiers in the Antlers template guide.