Typescript Replaceall Does Not Exist On Type String Null