I tried to replace characters in String which works sometimes and does not work most of the time.
I tried the following:
String t = \"[javatag]\"; String
Strings in Java are immutable, meaning you can't change them. Instead, do t1 = t1.replace("]", "");. This will assign the result of replace to t1.
String
t1 = t1.replace("]", "");
replace