use accept method to test chars.