fixed item title generation

Code now centralized; more patterns taken into consideration.