Implement leftN and rightN for JCursor