Working on next matchLength method.