manacher max substring