removes trailing comma in example