Append a comma after a method, if it is not the last one