def sample(prefix, rest, size=40):
    """
    Provide a small sample of a string.
    """
    text = prefix + rest
    if len(text) > size:
        text = prefix + rest[0:size - len(prefix) - 3] + '...'
    return text
