withouEnd2: drop both ends, any length
Given a string, return a version without both the first and last character. The string may be any length, including 0. Step through withouEnd2: it's withoutEnd with a safety check — strings shorter than 2 have nothing left once both ends are gone, so they return "" before substring can throw an exception.