You did not assign it to test. Strings are immutable.
test
test = test.replace("KP", "");
You need to assign it back to test.
1.4m articles
1.4m replys
5 comments
57.0k users