Trigram

Changed use of LENGTH to specific function to provide same trailing space elimination as quick version.  Eliminated filter.  Performance and graphs show that the quick version is used and the other version is not run for strings with total length longer than the max for the quick compare.
Yes.  The behavior in the quick compare function must be the same as the "slow" compare path.  The current TRIM(...) function correctly trims all of the trailing white space equivalents.  The C++ code does not have ready access to the function that provides the equivalence mapping and so just uses a space character.