Calculates the length of a string.
See your host OS documentation for more information on this function.