char detect