strip leading/trailing white space

Signed-off-by: Russell Senior <russell@personaltelco.net>
defined($privaddr) wasn't working, bfoote suggests dropping the defined() part

Signed-off-by: Russell Senior <russell@personaltelco.net>