cmSystemTools: Generalize TrimWhitespace to all whitespace

Modify cmSystemTools::TrimWhitespace() to remove all leading and
trailing whitespace, not just spaces.
Merge topic 'SystemTools-TrimWhitespace-all' into next

674f918 cmSystemTools: Generalize TrimWhitespace to all whitespace