code: def remove_all(self, token):
          
  
          out = self.string.replace(" ", token)  # replace tokens
          while out.find(token + token) >= 0:  # while there are tokens
              out = out.replace(token + token, token)
          return out
docs: Removes all occurrences of token
  
          :param token: string to remove
          :return: input without token