Typescript Property Replaceall Does Not Exist On Type String Is Not A Subtype