Fix bugs.

1. Edit menu is not available.
2. Add space after commas on compact and expand format.
2. Optimized compact and compress format.