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

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