def combine(text, starts, append):
    """Combine intermediate tweet representation to one str"""
    strlist = []
    i = 0
    while True:
        oldi = i
        while i not in starts and i < len(text):
            i += 1
        strlist.append(text[oldi:i])
        if not i < len(text):
            break
        strlist.append(starts[i]['html'])
        i = starts[i]['indices'][1]
    strlist.append(append)
    return ''.join(strlist)
