The split (str arr regex) function