def skipString(s: str, st_idx: int) -> int:
    """Used to skip an str object in a python print statement taken from a file

    Args:
        s: An str object which needs to be traversed
        st_idx: Start index for the str object

    Return:
        The end index of the str object
    """
    i = st_idx + 1
    # This loop traverse through the string and ignores the next character to backslash character
    while i < len(s) and (s[i] != s[st_idx] or s[i - 1] == "\\"):
        i += 1
    return i