Get string length.
Return the length of the specified string. The length of a string does not include the null terminator at the end of the string.