trim content before compare