Small comment: can you change this to `order.split(' ')`. If you don't specify an argument, split uses a global variable (`$;`). By default, this is set to whitespace, but the user can override this, breaking this functionality. (see http://www.ruby-doc.org/core-2.1.0/String.html#method-i-split)