split,replace,all: fix behavior for empty matches