[% a = '1234567890' -%] [% a | truncate(5) %] [% a | truncate(10) %] [% a | truncate(15) %] [% a | truncate(2) %] [% a = '1234567890123456789012345678901234567890' -%] [% a | truncate %]