Updated the compareContent method

all tests now work as intended.