Parse a CSV string into an array