I came with a solution myself just when I posted the question. I produced a string variable where I kept introducing strings to with a comma and when the loop did its last run, I designed an if assertion not to add a comma to my variable (where I pasted https://gujaratvibes.com