improve string-operator with template