Typescript Remove Last Character From String If Comma