typescript compare enum value to string