Can Hazel compare file names for sorting?

Hi, I'm trying to organize my fonts into a folder named as the family. I'm using Fontcase app as font manager and this app has the library folder sorted alphabetically, I only see the font families grouped through the app, so I can then drag a family out to the finder and I will have only the files from said family.
So if I drag, for example the family Helvetica in the Finder I can see:
Helvetica Book.otf
Helvetica Light.otf
Helvetica Bold.otf
Helvetica Heavy.otf
I want to sort these files to a folder named Helvetica. You might says it's as easy as creating a rule "file starts with Helvetica" but this is where my question gets tricky:
I'm trying to make a rule that works for ALL of the font family names, but not at the same time, this is.. I'll be dragging out just 1 font family at a time, and would like Hazel to take those files and group them in a folder with the same COMMON name of the files.
So if I drag
Helvetica Book.otf
Helvetica Light.otf
Helvetica Bold.otf
Helvetica Heavy.otf
I want the rule to save the common name in the files, which is Helvetica and sort those files into a folder name Helvetica.
Then I drag out the next family:
Arial Book.otf
Arial Light.otf
Arial Bold.otf
Arial Heavy.otf
The rule gets the common name in the files, which is Arial and sorts those files into a folder named Arial.
Then I drag out the next family:
Freight Sans Pro Book.otf
Freight Sans Pro Light Italic.otf
Freight Sans Prol Bold.otf
Freight Sans Prol Bold Italic.otf
The rule gets the common name in the files, which is "Freight Sans Pro" and sorts those files into a folder named "Freight Sans Pro"
Is this possible?
So if I drag, for example the family Helvetica in the Finder I can see:
Helvetica Book.otf
Helvetica Light.otf
Helvetica Bold.otf
Helvetica Heavy.otf
I want to sort these files to a folder named Helvetica. You might says it's as easy as creating a rule "file starts with Helvetica" but this is where my question gets tricky:
I'm trying to make a rule that works for ALL of the font family names, but not at the same time, this is.. I'll be dragging out just 1 font family at a time, and would like Hazel to take those files and group them in a folder with the same COMMON name of the files.
So if I drag
Helvetica Book.otf
Helvetica Light.otf
Helvetica Bold.otf
Helvetica Heavy.otf
I want the rule to save the common name in the files, which is Helvetica and sort those files into a folder name Helvetica.
Then I drag out the next family:
Arial Book.otf
Arial Light.otf
Arial Bold.otf
Arial Heavy.otf
The rule gets the common name in the files, which is Arial and sorts those files into a folder named Arial.
Then I drag out the next family:
Freight Sans Pro Book.otf
Freight Sans Pro Light Italic.otf
Freight Sans Prol Bold.otf
Freight Sans Prol Bold Italic.otf
The rule gets the common name in the files, which is "Freight Sans Pro" and sorts those files into a folder named "Freight Sans Pro"
Is this possible?