Change for-in loop to Collections.forEach to satify JSLint (looks like a bug in JSLint though)
cleanup from code review

fixed type, delimeter -> delimiter
don't need to escape single quote in double quoted string