Problem with split function

Hello

I am using split function for the following data:

[a1,a2,,a3,a4,,a5,,]

Using this data I would like to end up with an array of 9 strings, meaning

array[0]=a1

array[1]=a2

array[2]= {just empty or null}

array[3]=a3

array[4]=a4

array[5]= {just empty or null}

array[6] = a5

array[7]={just empty or null}

array[8]={just empty or null}

The split function handles the seperators correctly if they are empty and in the middle of the string (array[2] and array[5]) but not array[7] or array[8].

Can you please help me solve this?

Many Thanks:confused: