import java.util.regex.*;
class T {
public static void main
(String[] args
) { String str
= "This is an ant"; String result
= str.
replaceAll("\\bis\\b",
"is not"); }
}
aW1wb3J0IGphdmEudXRpbC5yZWdleC4qOwoKY2xhc3MgVCB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU3RyaW5nIHN0ciA9ICJUaGlzIGlzIGFuIGFudCI7CiAgICAgICAgU3RyaW5nIHJlc3VsdCA9IHN0ci5yZXBsYWNlQWxsKCJcXGJpc1xcYiIsICJpcyBub3QiKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4ocmVzdWx0KTsKICAgIH0KfQ==