Powershell Find Index Of String Python Replace