Whitespace is the default for split, so you don't have to specify it. This line could just be:
input.split[0]
But you can do whichever way makes the most sense to you.