get max sub str