custom string length for diacritics