Typescript Split String Into Two Strings Are Better