Strings are immutable. When you call replaceAll, it does not modify the original String but instead returns the result. You need to use this result:
Now, when you call this method, you should assign the result value to your original String reference:
By the way, shouldn't you use "" instead of null for the replacement values? I thought that null would cause a runtime exception.