Fix for issue with $ characters in wfStringExpand