Using String.split() is by far the most efficient when you want to split by a single character (a space, in your case).

This would be a good solution if you are aiming for maximum efficiency when...