set lengend max char length