String concat checking and template sample