Take a look at the use of the MetaData plugboards in Calire.
Mine is set to
Code:
format:ePub
Device:Kobo
Source Template: {series:re(([^\s])[^\s]+(\s|$),\1)}{series_index:0>2s| - | - }{title}
Destination Field: title
This results in books with no series going unchanged
Books IN a series have
"A Shortened Name Of The Series" - "Series Index" - added to the title so that
The Hitchhiker's Guide to the Galaxy
becomes
THGttG - 01 - The Hitchhiker's Guide to the Galaxy