Added the template and data properties. Developed the string template function