def METHOD_NAME(self, s):
    """Return s, restricted to a sane length."""
    if len(s) > (self.peek_length + 3):
        half = self.peek_length // 2
        return s[:half] + '...' + s[-half:]
    else:
        return s