The above specification is ambiguous. The differencing seems to leave out spaces and newlines. Are you only differencing in words? What about punctuation?. To solve this problem, you must first figure out which differences are significant and which are not.