Fix all test failures due to substr fix.

Reverted the fix for substr function not setting the scankey range correctly. Also, fix couple test failures due to the previous new values added to the table. After this fix, all tests in VariableLengthPKTests are passing, including the new rtrim, ltrim and trim tests.