def sandhi(inwords):
        """Returns a string with the following replacements performed on the provided one.

        - ~s/ \+ ([^\[])/$1/g; replace + and surround spaces with nothing
        - replace aa with A
        - replace ii with I
        - replace uu with U
        - replace Ru with R
        """
        inwords=inwords.replace(' + ','')
        inwords=inwords.replace('aa','A')
        inwords=inwords.replace('ii','I')
        inwords=inwords.replace('uu','U')
        inwords=inwords.replace('Ru','R')
        return inwords