Refactoring customDelimiters, added check for contains delimiter