I\'m trying to remove excess whitespace from a string like this:
hello world
to
There is an example on how to strip excess whitespace in the preg_replace documentation