add Replace method with example