isTitle

Syntax

isTitle(X)

Arguments

X is a STRING scalar or vector.

Details

Check if X is a titlecased string, which has the first character in each word uppercase and the remaining all characters lowercase alphabets.

Examples

isTitle("Hello World");
// output
true

isTitle("Hello world");
// output
false

isTitle(["Hello","468","  "]);
// output
[true,false,false]

isTitle("1And1");
// output
true

Related functions: isLower, isUpper