public boolean stripLastChar() {
    return stripLastChar;
  }
@Test
  public void testStripLastChar() {
    String testString = "abc"; // encoded as 1|00000|00, 001|00010, exactly two bytes
    MetaStringEncoder encoder = new MetaStringEncoder('_', '$');
    MetaString encodedMetaString = encoder.encode(testString);
    assertFalse(encodedMetaString.stripLastChar());

    testString =
        "abcde"; // encoded as 1|00000|00, 001|00010, 00011|001, 00xxxxxx, stripped last char
    encodedMetaString = encoder.encode(testString);
    assertTrue(encodedMetaString.stripLastChar());
  }