Questions
How are the lines joined?
Each line is trimmed, blank lines are skipped, and the items are joined with a comma and a space: "apple, banana, cherry".
What is a comma-separated list useful for?
SQL IN (...) clauses, tag fields, email recipient lists, and any form that wants values on one line.