Clean twig code