fix bug in splitStr