remove the double splice

remove the double splice
Merge pull request #9 from kentaromiura/cc-optimize

remove the double indexof