setting var to empty strings leaves garbage in resulting template