simplifying stripDelimiter to avoid special effects with some unicode charachters