+ @Test
+ public void testTrimPrefix() {
+
+ final String2 s = new String2("this is a test");
+
+ assertEquals("is a test", s.trimPrefix(5).toString());
+ assertEquals("a test", s.trimPrefix(3).toString());
+ assertEquals("test", s.trimPrefix(2).toString());
+ assertEquals("", s.trimPrefix(500).toString());
+ }
+
+ @Test
+ public void testTrimSuffix() {