I would go through the file line by line and for each line (pseudo-code, not tested) :
if ($line ~= /\w+,\d+,\w+/) { # matches the lines with the information
my $array = split $line at ,
print to file array[0] + "," + array[1] + "," + array[2] + "\n"
} elsif ($line ~= /\w+/) { # matches the car model since the information was already matched
print "Car Model:" + $line + "\n"
} else { # must be the whitespace so you know the information about the car is done
print "\n" # to separate the car information
}
If you don't have the blank line in your csv file then do the newline to separate the car models elsewhere