Take input from the user and check's if palindrome

Takes input form the user in a string and check if the input string is either q or Q.
If the input is q or Q it quits. Else it check's weather the input string is a palindrome or not.
Then it ask user enter another string or quit.