Deals with unwanted spaces in update activity