Update replace.php