remove some unneeded spaces