The purpose of this code is to transform data from a column in a spreadsheet to long concatenated strings, separated by commas, each no longer than a predefined max length. The code was created to facilitate creating strings to use as field filters in Salesforce reports which allow up to 1000 chars each. Some analyses require brute forcing with filters to get the desired filters.