So what is the problem exactly? If you make 'chVale' a char, it should work fine.