removes unneded spaces