Inheriting data from the previous data extraction

Hi, guys!

Please, I need your help. I’ve a project that consists in extracting data from a txt file and append it in a respective csv file, but I’m facing a problem.

My txt files come from an OCR extraction of an external system. It’s normal not to capture some datas, but my RPA is inheriting data from the previous extractions, like:

The red marks shows the inherited data. How could I do something like:

If the data was encountered, then fill the variable. If it doesn’t, then, let it empty???

Best Regards and thanks in advance

I’m trying something like

Screenshot_1

Then: strNomeCompleto = strNomeCompleto.Replace(strNomeCompleto, String.Empty)