def newick_semicolon_check(tree_str):
    """
    This function will check the last character of
    the tree in newick form and ensure that is ends in ";".
    """
    if list(tree_str)[-1] != ";":
        tree_str += ';'
        return tree_str
    else:
        return tree_str