fixed error in method 'findTheShortestSentence'