A (runtime expensive) implementation of enum to string solution.