StringExtension extension

on

Methods

toCapitalized() String

Available on String, provided by the StringExtension extension

Capitalizes the first letter of the string.
toSnakeCase() String

Available on String, provided by the StringExtension extension

Converts a string to snake_case. e.g. hello world -> hello_world
toTitleCase() String

Available on String, provided by the StringExtension extension

Converts a string to Title Case. e.g. hello world -> Hello World