labelize
Transform a string to lowercase with capitalized first letters and spaces between words.
Splits on -, _, or existing spaces, capitalizes the first letter of each resulting word,
lowercases the rest, and joins them with a single space.
Available since v1.0.1
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
str | string | The string to convert. |
Returns
Section titled “Returns”string — The labelized string.
