I have a string str
var str = \'h, b, c, [d, e, f], g, h, [ighg]\'
and I need to split based on \',\' and ignore if \',\' comes in between \'[ ]\'