I arrived with an answer myself just when I posted the question. I designed a string variable exactly where I retained introducing strings to which has a comma and when the loop did its very last run, I created an if statement not to add a comma to my variable https://gujaratvibes.com