Powershell Replace Text In String Javascript Substring End