make character predicates (isspace etc) work for strings arguments too

This adds the simple convenience that functions like `isspace` or `isalpha` can work for string arguments as well as for individual characters (returning `true` for a string if the predicate is true for all characters in the string).