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");
true

$ isTitle("Hello world");
false

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

$ isTitle("1And1");
true

Related functions: isLower, isUpper