Add partial match checking to find_prefix_node().