def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def serialize(self, value, display=False):
        """Convert value back to string for saving."""
        if value is None:
            return ""
        return str(value)