added sanitise to regex replacements