Typescript Enum Name To String Javascript Substring End