remove duplicated white spaces.