the ";" will always be at the end, right ?

so this will probably work better:
```javascript
var recipientString = recipient.textContent;
if (recipientString.charAt(recipientString.length - 1) === ';') {
  recipientString = recipientString.slice(0, -1);
}
recipient.textContent = recipientString;
```

or the regexp equivalent:

```javascript
recipient.textContent = recipient.textContent.replace(/;$/, '');
```
(not sure which one is faster)