Issue #2298911 by coltrane: trim() htaccess content check to better check content