Fix a bug in split and add a skeleton for parse