You could use also
```php
$rel = substr($rel, 0, -1); 
```