Php Replace Char In String In Java