Allow replace with no substitutions.