Test and implementation for custom delimiters of any length