def jinja_resilient_splitpart (value, index, split_chars=' - '):
    """[split a string and return the index]

    Args:
        value ([str]): [string to split]
        index ([int]): [index to return]
        split_chars (str, optional): [split characters]. Defaults to ' - '.

    Returns:
        [str]: [index of string. if index is out of bounds, the original string is returned]
    """
    splits = value.split(split_chars)
    if len(splits) > index:
        return splits[index]
    else:
        return value