Added a variable for the delimiter

This makes it easier to customize the code and to make sense of what it does.