change string to slice