Generally, regular expression would make things simpler here, e.g.,
$word = 'bla bla1 bla2 bla3';
$word = preg_replace('/ {2,}/', ' ', $word);
or if you actually intend to replace one or more occurrences of consecutive whitespace with a space:
$word = 'bla bla1 bla2 bla3';
$word = preg_replace('/\s+/', ' ', $word);