string: add case-insensitive search

And while we are at it: translate methods into flags