Return the size of the string.
size_type length() const;
Returns the number of characters stored in the string, excluding the null terminator.
Constant.