[Bug #8633] .replace() shoer hands avoided