PowerShell String Methods: Trim, ToUpper, Contains, and More ─□✕ February 19, 2026May 5, 2026 PowerShell Tips Editor 4 min read PowerShell String Methods: Trim, ToUpper, Contains, and More PowerShell strings expose the full .NET string API. Learn the most useful methods — Trim, ToUpper, Contains, Substring — with practical examples.