fixed some issue in string width, add some test