TextFormatter { public static String unindent(String input) { return input.replaceAll("(?m)^\\s+", ""); }  static String indent(String input); static String indent(String input, String padding); static String unindent(String input); static String vertical( String text ); static String wrap(String str); static String wrap(String str,  int wrapLength, String newLineStr, boolean wrapLongWords);  }
@Test public void testUnindent() throws Exception { assertEquals("hello", unindent(" hello")); assertEquals("hello\nworld\n", unindent(" hello\n world\n")); }