Can someone please tell me how to close a window if it has a certain string in it's title?

eg. If there is two windows opened called 'Go!Zilla Downloads' and 'My Downloads', theyd both close because they both have the string 'Downloads' in them.

Thx.