Availability:built-in
string_length(+String,
-Length)Unify Length with the number of characters in String.
This predicate is functionally equivalent to atom_length/2
and also accepts
anytext as its first argument. Number types must first be
formatted into strings before the length of their string representation
can be determined.