As described in the docs for
split, there's an optional 3rd arg, which says how many elements you want returned; "-1" returns all possible, even those that happen to be empty strings after the last non-empty element. (Default is to truncate the return list after the last non-empty element.)