custom delimiter function

It will be great to have an option to customize the delimiter replacement function.