check variable does not contain string twig code example Example: twig if first in string contains {% if 'World' starts with 'F' %} {% endif %}