reworked algorithm to correctly add another Most Signigicant Digit to the string when necessary.