implement alphabet search