Typescript Enum Get String Python Replace Substring With Another String