Remove Similar Result before Writing to Datatable?

Hello Community,

See Output below:

image

Header column is keywords. Bot checks documents for keywords.
Document names form new columns. For each document, ‘x’ means found and number how many times.

Is it possible before writing to datatable to check if header items have similar words (ex. EL-312, Handbook EL-312 and same count: 1 time each) and remove the one with lower length before writing?

If that was possible, I would expect the following result:
image
Thank you.

Check fuzzy match Fuzzy lookup - #8 by Dave