Using an application involving the entering of variable-length digit strings the user can dial either the number for the attendant or an extension to reach the wanted destination. If the maximum number of digits that can be entered is administered to be 3 and the user wishes to reach the attendant, the user must dial 0#. However, if the user chooses to dial a 3-digit extension, the user must dial, for example, 748 and not 748#. As the maximum number of digits that can be dialed in this case is three, dialing 748# causes the pound (#) sign to be saved as a dial-ahead digit. On the other hand, if the caller dials 748# and if the maximum number of digits that can be entered is four, the pound (#) sign is not saved as a dial-ahead digit as the sign is the last of four digits.