added template-engine as String.prototype function