Whitespace is the default delimiter for the split method, so you don't need to specify it. This could work like this:
p string.split[0]
OR
p string.split.first