StringLength
StringLength["string"] gives the number of characters in a string.
Examples
Length of a string:
StringLength["Hello World"]
(* 11 *)Empty string:
StringLength[""]
(* 0 *)Please visit the official Wolfram Language Reference for more details.