removing unneeded spaces