Refactored humanized_list function