Typescript Split String Into Two Variables With Positive Correlation