Well it is a few years on and a few (well 45 actually) ST versions on. As of the current ST version 3.80 there is a new “CSVDecode” option on the “remove quotes” parameter of st.split() so you don’t need to worry now about converting 9"" nails to 9" nails.
so the above code can now be simplified to:
str StringTheory
lne StringTheory
x Long,auto
code
str.LoadFile('Somefile.CSV')
str.LineEndings()
str.Split('<13,10>','"')
loop x = 1 to str.Records()
Lne.SetValue(Str.GetLine(x))
Lne.Split(',','"','"',st:CSVDecode) ! <--- note new option
field1 = Lne.GetLine(1)
field2 = Lne.GetLine(2)
end