'this is a foo and a foobar'.split('foo').join('bar');