fix bug: substrWidth will be incorrect if startWidth is greater than str width
fix bug: substrWidth will be incorrect if startWidth is greater than str width

kevinptt0323/ptt-client,kevinptt0323/ptt-client