wrong type in checkChar