your suggestion will just remove the last comma, which will be ignored, if there is no channel after this