updated twig filter replace with substitute