Improvements to str_is* functions.

- Now str_is compares string == fun(string) for generic handling of
comparisons.