program to find the length of the string