check correctness of typed character