Added a function to handle a single delimiter of any length