strip function removes the trailing whitespace. i want to remove
trailing comma's. is there a additional parameter for strip or some
other function to do the same.