remove extraneous white spaces