split_input function

Split string into options.