revised function format_collection_name