minor bug fix about strpos function and minor optimization
Merge pull request #270 from hasib71/4.0-dev

minor bug fix about strpos function and minor optimization