Perform multiple replacements on a string in a single pass

What I would expect is that the first substitution that matches is used, or an error is throw. Seems intuitive to me.