def _next_index(self, s):
        self.set_index(self.index + 1)
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""