implement string split api