x.replace(x, y) -> y
Merge pull request #2118 from smichr/replace

x.replace(x, y) -> y