/* Cleans off leading and trailing spaces and tabs. */
EFI_STATUS TrimSpaces(IN CHAR16 **String)
/* Cleans off leading and trailing spaces and tabs. */
EFI_STATUS TrimSpaces(IN CHAR16 **String)
{
  ASSERT (String != NULL);
  ASSERT (*String != NULL);
  while (((*String)[0] == L' ') || ((*String)[0] == L'\t')) {
    CopyMem ((*String), (*String)+1, StrSize ((*String)) - sizeof ((*String)[0]));
  }
  while ((StrLen (*String) > 0) && (((*String)[StrLen ((*String))-1] == L' ') || ((*String)[StrLen ((*String))-1] == L'\t'))) {
    (*String)[StrLen ((*String))-1] = CHAR_NULL;
  }
  return (EFI_SUCCESS);
}