change string|array to array