handle strings

would be nice to have a simple `indexOf` check for strings so it can be used for either