I want to do something like this:
{% set c=a+b %}
Where a and b are strings. How can I do it?
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).