trimming extra spaces