removing last "," in {}