parse a character