Adds the possiblity of using the 'deep' option in order to compare ignoring whitespace at the begining and end of the text nodes