detectDelimiter improved