Find all palindromes in this string: dog, racecar, radar, madam
“dog, racecar, radar, madam”
After analyzing the given string, the following words were found to be palindromes: racecar, radar, and madam. Palindromes are words that read the same backward as forward.
Complete the following task based on the instruction and optional input provided.### Instruction:
Find all palindromes in this string: dog, racecar, radar, madam

### Input:
“dog, racecar, radar, madam”

### Output:
After analyzing the given string, the following words were found to be palindromes: racecar, radar, and madam. Palindromes are words that read the same backward as forward.