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.
Was there a reason for this instead of LENGTH(TRIM(str))?