Adding a [truncate] helper to common helpers and twig functions