String is ex=\"test1, test2, test3, test4, test5\"
ex=\"test1, test2, test3, test4, test5\"
when I use
ex.split(\",\").first
it returns
\"test1\"
if u want to use them as an array u already knew, else u can use every one of them as a different parameter ... try this :
parameter1,parameter2,parameter3,parameter4,parameter5 = ex.split(",")