indexOf returns -1 if value not found
Merge pull request #1 from arlolra/useragent

indexOf returns -1 if value not found