Please print out the palindrome from the following collections without using any libraries.
- mom
- dad
- kayak
- civic
- level
- repaper
- Don't nod.
- I did, did I?
- Step on no pets
- Was it a cat I saw?
- Single function/method that can properly handle words and phrases.
- Printing out word and phrases in original form.