Improving addition of extra commas into arrays - Take II