Convert to use string.Template