checkPaladrome works