/* Trim the leading and trailing spaces for a give Unicode string. */
CHAR16* TrimString(IN CHAR16 *String)
/* Trim the leading and trailing spaces for a give Unicode string. */
CHAR16* TrimString(IN CHAR16 *String)
{
  CHAR16  *TempString;
  for ( ; *String != L'\0' && *String == L' '; String++) {
  }
  TempString = String + StrLen (String) - 1;
  while ((TempString >= String) && (*TempString == L' ')) {
    TempString--;
  }
  *(TempString + 1) = L'\0';
  return String;
}