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 are immutable so
t.replace(....);
does nothing
you need to assign the output to some variable like
t = t.replace(....);