def String2Alignment(source):
    """convert an alignment string to a tuple alignment.
    """

    d = source.split(" ")
    ali = []
    if len(d) < 3:
        return ali

    for x in range(0, len(d), 3):
        ali.append((d[x], int(d[x + 1]), int(d[x + 2])))

    return ali