strip spaces around private key