I have to create a function which takes as input a string formatted as a comma-separated list of values , and returns a pointer object based on the input string.
it should trim any amount of whitespace before or after the fields.
like parse_item(const string& csv);