refactor and handle error on prefix_list_string to retrieve Prefix obj