Switch from a string to an array