import re


def filter_repeated_chars_on_tweet(tweet):
    """
    DESCRIPTION: 
                filters repeated characters from each word of a given tweet
                e.g "I am haaaaaaaaaaaappy" returns: "I am haappy"
                Thus, we different words with exactly the same meaning are equalized
                e.g haaaaaha & haaaaaaaaaaaaaaaaaaha are equal.
    INPUT: 
            tweet: a tweet as a python string
    OUTPUT: 
            transformed tweet as a python string
    """
    t = []
    for w in tweet.split():
        t.append(re.sub(r'([a-z])\1\1+$', r'\1 <elong>', w))
    return (" ".join(t)).strip()