Typescript Remove Last Char Of String