for i in range(1, len(spreadsheet)):
matrix_row = []
// if the concept cell is empty skip if flagged
if spreadsheet[i][concept_id] == "" and self.skip_empty_concepts:
continue
for j in range(0, len(spreadsheet[i])):
if j == concept_id or j in language_indices:
matrix_row.append(spreadsheet[i][j])
self.matrix.append(matrix_row)
After Change
for j in range(0, len(spreadsheet[i])):
if j == concept_id or j in language_indices:
matrix_row.append(spreadsheet[i][j].strip())
self.matrix.append(matrix_row)