fix error in split() examples (closes #22459)

Patch by Raúl Cumplido.