Strip whitespace from command results.

otherwise it interferes with the password.