def __sub(self, string: str = '') -> str:
        """Replace spaces in string.

        :param string: String.
        :return: String without spaces.
        """
        replacer = self.random.choice(['_', '-'])
        return re.sub(r'\s+', replacer, string.strip())