Fix color type string processing