Checking entered string is whether paliendrome or not