Workarounds for using str_replace instead of the modx parser