Kendo template replace string. The solution I came to is below.