change search pattern from contains to beginswith to gain better results for the dictionary searching