def read_str(
    s: str,
    i1: int,
    i2: int,
    ) -> str:
    """Read a string segment

    Parameters
    ----------
    s : str
        The entire string
    i1 : int
        The initial index
    i2 : int
        The last index

    Returns
    -------
    str
        The string segment
    """    

    s_last = s[i1:i2]

    return s_last