add char validation