How to read No. of characters in a .csv file

Hi Folks -

I have a XMLport reading a .CSV file which is comma separated. When each line is imported how do I check for the No. of characters in the line. In the below example I have 30 characters in the second line of the spreadsheet and second line I have 35 characters due to Column G, as and when the line is imported if the no. of characters exceeds 30 characters I want to skip the line. Is it doable? I would truly appreciate if someone knows how it can be done. Any help is truly appreciated.