PowerShell Trim

$result = $mystring.trim()
Mike Hsu