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