I did this
$getdomain is a variable created by mysql when it pulls out a row.
$getdomain2 = ereg_replace (" ", "", $getdomain);
echo "$getdomain2!<br>";
et when it does the echo i get
www.example.com !
*note the space before the "!"
Why does this happen?