clean outout in gettemplate