Implement simple character classes

Currently only explicit letters can be specified inside brackets e.g. '[ab]'