Update substr_replace.js

tests correction