print length of string