char based cws