remove unnecessary test in CharTypeOf