remove useless spaces when generating sql