fix bug

If the second text has the same digit with the first text and shorter than the first text,the digit will become 0.
(e.g. change text from 1200 to 200, the result become 000. change text from 1203 to 103, the result become 100.)