I’m using the .replace method to remove a character in a string. The issue I’m having is I’m using the parameters
.replace("#", "")
To remove the hashtag from a string that could be for example “# hello” The replace method is doing what I want in removing the hashtag however it leaves an actual blank space in the string when I use it. So “# hello” becomes “ hello” when really I want it to be “hello”. Is there a different method I can use or a different parameter I can use to achieve what I want?