Change template to output a string