How to replace string in template in Response Transforms Tyk dashboard

How to replace string “” in template :
Template :
“CompanyList” :[{{range $index, $element := .ListCompany }} {{if $index}}, {
“LOGOFILENAME” : “{{$element.LOGOFILENAME}}” }
{{end}}
{{end}}
]

to resulf :
“CompanyList” :[
, {
“LOGOFILENAME” : “2017\08\18\41244faf-b41c-4cc9-8f9c-3764d2aa41d9.png”
}
I changed to : “LOGOFILENAME” : “{{$element.LOGOFILENAME | replace “” “-”}}”
to error
Output : template: test:10: function “replace” not defined
help me please !! Thanks

Hello, you do get access to “replace” function from the Sprig library that’s packaged. However, you have to run the test through the Gateway itself, you won’t be able to to access it natively from the UI tester.