check constr str delim re collect sep token token token str delim sep tok idx re length token str delim lack token token token tok token token token index broken idx token token index idx tok length token str delim wrong token tok re re equal tok token str delim token token token 