Replace words in tweets: string replace?

Hi,
I have tweets where “Elon Musk” is sometimes referred to as “elonmusk”, 'elonmusk’s", “elon” or “musk”.
How can I make the all to convert to ‘elon musk’?

I’m learning topic detection, in one topic I have both “elon” and “musk” weighted.

I’ve tried String manipulation but keep getting error message
many thanks for your help!
Outi

It seems you need to use replace() function not replaceChars()

1 Like

thank you, very much appreciated!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.