Change shortcode output (filter?)

I was able to solve this by using str_replace.

function mp_filter_download( $result ) {
        $search="<div style="clear:both;"></div>";
        $replacewith=" ";      
        return str_replace( $search, $replacewith, $result );
}
add_filter( 'downloads_shortcode', 'mp_filter_download', 10, 2 );