Fix checking for color codes in SanitizeString();