import re


def remove_tags(input_str):
    """Removes formatting tags, double spaces from text string"""
    new_str01 = re.sub(r'<(i|sub|sup)[^>]*?>', '', input_str)
    new_str02 = re.sub(r'</(i|sub|sup)[^>]*?>', '', new_str01)
    new_str03 = re.sub(r'  ', ' ', new_str02)
    return new_str03