titlecase

string

Converts a string to title case (first letter of each word capitalized)

Syntax

titlecase(string)

Parameters

string (string)

The string to convert

Returns

string

String converted to title case

Examples

Input:
titlecase("hello world")
Output:
"Hello World"
Input:
titlecase("the quick brown fox")
Output:
"The Quick Brown Fox"
Input:
"test data" | titlecase
Output:
"Test Data"

The titlecase() function converts a string to title case, where the first letter of each word is capitalized and the rest are lowercase.

Usage

Use titlecase() for formatting names, titles, or headings. Useful for standardizing text presentation and improving readability.

Related Functions