Extend MAX_LINE and MAX_WORD constaint