toTitleCase

Modified on Wed, 16 Aug 2023

Description

Convert a string to proper case (title case)

Syntax

toTitleCase(text)

Parameters

Input ParameterTypeDescription
textstringThe input string to convert

Return value

Type
string

Sample

ExampleResultDescription
toTitleCase('this is a TITLE')'This Is A Title'The result string in proper case (title case)
toTitleCase('2 way street')'2 Way Street'The result string in proper case (title case)
toTitleCase('BudGet')'Budget'The result string in proper case (title case)

To view all the String functions, click here.

See Also