Allow passing in an empty string for separator

Not sure if it's intentional to disallow an empty separator.