Allows for multiple levels of open/close recursion in string splitting