move string convertation to template