find the length of the given string