fix #1 by replace `String.prototype.search` with `String.prototype.index...

`String.prototype.search()` reveive a regular expression as param, it shouldn't be used here.