Whitespace is the default for the split method, so you could actually just do this line as:
word.split[0]