Convert int to string for using indexOf

Using indexOf on int throwing error
Merge pull request #5 from thiagupct/patch-3

Convert int to string for using indexOf