> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encord.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Common.utils

#### validate\_user\_agent\_suffix

```python theme={"dark"}
def validate_user_agent_suffix(user_agent_suffix: str) -> str
```

Validate a User-Agent string according to RFC 9110, excluding comments.
Returns it whitespace trimmed

**Arguments**:

* `user_agent_suffix` - The User-Agent string to validate

**Returns**:

The validated User-Agent string

**Raises**:

* `ValueError` - If the User-Agent string is invalid
