def truncate(name: str, length: int = 50) -> str:
    """
    Truncates a string and adds an elipsis if it exceeds the specified length. Otherwise, return the unmodified string.
    """
    if len(name) > length:
        name = name[0:length] + "..."

    return name