How to combine two string in twig?

The way to do it is:

{% set c = a ~ b %}

Use the "~" operator. This will concatenate your two strings. The "+" operator cannot be used to combine strings.

You would get this:

{% set c=a~b %}

More info: The "+" operator: Adds two objects together (the operands are casted to numbers).