So looking at this page
http://wsgiarea.pocoo.org/jinja/docs/filters.html I should be able to use the jinja filter "replace". But everytime I try to do this in my .sls files I get this error - "["Rendering SLS glassfish failed, render error:\nexpected token 'end of statement block', got 'string'"]}"
Example:
example.sls --
{% set filteredString='abcdef'|replace 'a' 'b' %}
salt '*' state.show_sls example
Error:
["Rendering SLS glassfish failed, render error:\nexpected token 'end of statement block', got 'string'"]