Angular Array Remove Last Element From String