Strip out redundant surrounding spans