read the actual length of the string.