find the length of the givan string