Add String.category function

It looks up the Unicode general category of a codepoint (whether it is a letter,
space, etc).