remove unneeded spaces