Fix bug when symbol = '0' at the end of string generate error