change string to enum