make content comparison more tolerant of spaces