toArray and toString