added assignment 4.1

I used two arrays. The first array is to split up the original string, which created a few blank strings. I then transferred the non-blank strings into the second array.