normalize_spaces
Convert multiple spaces to single and strip from both sides.
def normalize_spaces(
val: string
) - > string|null
Convert multiple spaces to single and strip from both sides.
Parameters
| Name | Type | Description |
|---|---|---|
| val | string | The input string to be trimmed and normalized |
Returns
| Type | Description |
|---|---|
| `string | null` |