revert unnecessary spaces