change character to char