Support text extraction from rich text formatted strings in the spreadsheet
Fix a bug when there are empty rows