Remove newlines from host