Powershell String Replace Method Javascript Interview