Routing tickets by keyword in the subject

Hi All,
I would make a Custom Defined scrip which If a specific word is present in
the subject, for example If in the subject is present (between other words)
the word “home” , then RT resend email and open a new Ticket in another
specified queue.

Please can you help me?
Very thanks