Terser method of string to array conversion courtesy of ethooz.