Updated spreadsheet parser to trim rows to header len