remove pointless spaces