Powershell String Replace Method In Java