remove unneeded/trailing spaces