Issue-3465570 Fix CSV header generation
Closes #3465570 Updated the sample CSV generator to prepend commas when appending field names and replaced substr() with rtrim() to prevent merged columns such as langcode and promote appearing in a single column.