Typescript Property Replaceall Does Not Exist On Type String Null