These should be two different functions: directionStringToConst and directionConstToString. Similarly for Action.