used constant in variable

taking constant MIN_LENGTH and deducting the length of the item. item
will be in the txt field when typing items for shopping list