Add support for multi-character grants.

202-228 and 233-242 are basically the same thing twice, could probably refactor a bit for less redundancy