Ruby Split String Into Array Java