def convertTags(tags_str, table):
    """Convert a string of tags into a string of integer trough table."""

    # Split str
    tags_l = tags_str.split()

    # Loop of convertion
    tags_int_l = [str(table[tag]) for tag in tags_l]

    # Convert as a string
    result = " ".join(tags_int_l)

    return result