import re


class StringModifier:
    @staticmethod
    def remove_number_suffix(text: str) -> str:
        base_text = text
        if re.match(r'^.+_[0-9]{1,2}$', text):
            matches = re.findall(r'(^.+)(?:_[0-9]{1,2}$)', text)
            assert len(matches) == 1
            base_text = matches[0]
        return base_text

    @staticmethod
    def simplify(text: str) -> str:
        alphanumeric = re.sub(r'\W', ' ', text, 1000, re.IGNORECASE)
        alphanumeric_concatenated = re.sub(r'\s', '', alphanumeric, 1000, re.IGNORECASE)
        return alphanumeric_concatenated

    @staticmethod
    def correct_spelling(text: str) -> str:
        spelling_corrections_dict = {
            'netherlands': ['nederland', 'the netherlands', 'nl'],
            'october': ['octobre'],
        }

        text = text.lower()
        new_text = text
        for (k, v) in spelling_corrections_dict.items():
            if text in v:
                new_text = k

        return new_text
