Fix "scriptEditor" component "searchAndReplace" replace method.

Closes #55.