@staticmethod
def shorten_string(string, max_length=30):
    """Truncate and add '...' if the string is too long"""
    suffix = '' if len(string) < max_length else '...'
    return string[:max_length] + suffix
