Well for one I see two brackets that need to be closed.

var %relname = $strip($3), %relsize = $left($strip($5),-2)

what is 3 and 5? can you verify that there are 5 pieces of data in the text?