Fixes #26 - Check type on stripos and correct arg order