i'm trying to clean up some dirty data input before passing it on to another method.

the string in question is say, String s = "ST. JOHN%27%27S";

obviously, the %27%27 is actually supposed to be a '

but unfurtunately, s.replaceAll( "%27%27", "'");

no errors happen, but java doesn't seem to see that the pattern is in front of it's face. so, ultimately, i never get the desired effect. any suggestions?