Step 3: Replacing the String