code: def __sub(self, string: str = '') -> str:
          
          replacer = self.random.choice(['_', '-'])
          return re.sub(r'\s+', replacer, string.strip())
docs: Replace spaces in string.
  
          :param string: String.
          :return: String without spaces.