cleanString(Cleans a given string by removing line breaks, reducing multiple spaces to a single space, and trimming leading and trailing whitespace.str
):string
Parameter | Type | Description |
---|---|---|
str | string | The input string to be cleaned. |
string
The cleaned string with normalized whitespace.