check character error