Using the split() function to create arrays