rewrite splitStr