codegen: complete str-split implementation