remove trailing comma also for Len method