typescript compare enum value with string