Add `Replace` method