remove leading and trailing space from server name and forbit the use of multiple spaces
changed str_clean_whitespace implementation to pkoerner's one
Merge pull request #1138 from KillaBilla/servernamecleanup

Remove consecutive spaces in servername