Added delimiter and passing test.

Adapted Mike's code to fit my work. Somewhat understood.