Better string normalization when setting type id from type title