Passed test for 3 with customer delimiter.
Refactored using pattern matching to determine custom delimiter and added failing test for -1.