find max length digit