Contains

Maybe using Regex for startswith? There is no startswith or starts_with alone or on a string.

{% if my_string contains 'foo' %}
  Yes!
{% endif %}

Case

{{ my_string | upcase }}
{{ my_string | downcase }}