is_tree_prior_name function

Determines if the name is a valid tree prior name