Typescript Split String Into Two Variables That Are Positively Correlated