adds setDelimiter
fixed a bug in setting the delimiter