more robust spelling check