longest_ancestor_length(): take a string_list argument for prefixes