adding an extra test to make sure tags match exactly, also removing the newline that the matcher adds to the end of filtered content