check trailing comma