added code for checking palindrom after removing spaces