@Test
public void trimTest() {

    char[] letters =
            array( ' ', '\n', 'a', 'b', 'c', ' ', '\n', '\t' );
    char[] results = trim( letters, 0, letters.length );
    assertArrayEquals(
            array( 'a', 'b', 'c' ),
            results
    );
}