Clean some code and magic spaces.

Improve code readability and magic spaces in key2pho.c