fix bugs for split string