To print the length of given string