Make the element.replace tag case-insensitive

Using a bit of regex magic, we can get our Denizen standard
case-insensitivity