Add strpos checks for increased performance
0.13.2