Fixing an issue with excess spacing in key gen

BREAKING CHANGE: Generated keys will now have excess spacing stripped
during generation to make more meaningful keys.