String recoding based on a library of predefined phrases

Thank you very much. You are really helpful.
I managed to create something and I moved my issue to this post Mutate issues plus external dictionary for string detect
(I did not include my zzzz or xxxxxx detention though as I have just seen your response).
I know you have already helped me a lot but would you be able to look at the post and modify my existing work (blank_statements are defined there separately as they might be used for other projects)?