convert code to enum string representation