Powershell Trim String In Array Python Functions With Parameters