use indexof library
Merge pull request #3 from juliangruber/indexof

use indexof library