A replace function that doesn't suck. Operates on Strings, Arrays, and Numbers.