convert single string to array of 1 element ruby code example Example: ruby string to array "a b c d".split(" ")