Fix typos in replacement