def index(sequence, i):
    """
    returns the ith element in the sequence, otherwise returns an empty string
    :param sequence:
    :param i:
    :return:
    """
    try:
        return sequence[i]
    except IndexError:
        return u""