Attempted to implement the ability to deal with ambiguous characters. Hasn't been tested yet