Only check strlen on end if end exists.