using split and join to change an array of planets to a string and back to an array