Remove spaces from hostname output