Apex String Replace Function In Java