Given an input string, find the length of the longest palindrome within the string.
"racecar"
7
Complete the following task based on the instruction and optional input provided.### Instruction:
Given an input string, find the length of the longest palindrome within the string.

### Input:
"racecar"

### Output:
7