removing excessive spaces