finding a length of string