finding the length of a string