add truncate filter in twig extension