ignore non-string delimiters

Prior to this, anything that wasn't `undefined` would be an acceptable delimiter. This doesn't really make sense, so this fixes that. In the event that a non-string delimiter is provided, it is simply ignored.