making sure characters are recognized properly