'Return s, restricted to a sane length.'

def peek(self, s):

    if (len(s) > (self.peek_length + 3)):
        half = (self.peek_length // 2)
        return ((s[:half] + '...') + s[(- half):])
    else:
        return s
