enchancing stripDelimiter function to work properly with special uinicode characters like umlauts etc.