Y si en vez de estar llamando
trim($patron1[1][0]) en el for, creas una variable antes del for y le indicas que lo que quieres tener es lo que indicaste?
Código PHP:
$home = trim($patron1[1][0]);
for ($row1 = 0; $row1 < $count1 ; $row1++) {
$string = $home.trim($patron2[1][$row1]);
$string = ereg_replace(" ", "", $string);
$h = trim("http://".$string);
echo $h."<br>";
}