The size command can find the length of a string (as well as the length of lists in general, see Section 6.39.3). length is a synonym for size.
Example. Input:
Output: