Typescript String Add Prefix Remove Suffix In Python