PowerShell Trim Spaces Back

$result = $mystring.trim()
Mike Hsu