move string handler to template