Problem: generating incorrect code for strings type

Solution: fix the template.