It could also be stated as:
input.split.first
Maybe more human readable?