Why not change It:

For It:

and It:

For it

Before the change my code took 30s now it's taking 6s
I'm looping through all paragraphs just 1 time and comparing any variable I find with my "kwargs" instead of looping through all paragraphs at each "kwargs" value
Thank you for your code, helped me a lot