check constr str delim re token token token str delim 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 