altZany The replace()
method is part of ES1 (the first version of JavaScript), so it's not something CDO would just remove. That would be like taking out if statements. I'm pretty sure that error is coming from thing
not being a string. I get the same error when using a number instead.