String delimiter using only for loops and conditionals.

Feels kind of bulky, let me know if I can optimize or improve this in some way!