Method InsertSpacesBetweenWords
InsertSpacesBetweenWords(string)
Inserts spaces into a string between words separated by uppercase letters. Numbers are treated as uppercase.
Declaration
public static string InsertSpacesBetweenWords(this string str)
Parameters
Type | Name | Description |
---|---|---|
string | str | Input string. |
Returns
Type | Description |
---|---|
string | Input string with spaces added. |
Remarks
Examples:
- "HelloWorld" -> "Hello World"
- "HelloWORLDAgain" -> "Hello WORLD Again"