converted string function to eve and reworking template