According to a simple jsperf test, it looks like multiple replace() calls is about twice as slow.