creat link list token sep comma separ str param str specifi delimit string list token sep token sep pars delim str token sep token sep idx idx length builder val builder length str length idx idx length idx idx idx length idx str idx idx idx length val append str idx val append idx math min idx length idx idx token sep val val builder set idx idx 