Added support for tristate code as char array