Update string to enum