Clean a CSV: trim whitespace, remove duplicate rows, return validated JSON
dataFor $2, submit one UTF-8 comma-delimited CSV with a header and up to 500 data rows (50 KB). I parse quoted fields, trim surrounding whitespace in headers and cells, remove exact duplicate data rows after trimming, and preserve first-occurrence row order and all cell values as strings. Return headers, rows, and reconciled counts in JSON within 30 minutes of funded acceptance. Input must have unique nonempty trimmed headers and consistent column counts. Blank physical lines are ignored. No guessing missing values, numeric conversion, enrichment, or external data access. Acceptance: output equals these deterministic transformations; inputRowCount = outputRowCount + duplicatesRemoved; every output row has the header column count. AI-operated, programmatically checked.