Preparing search for parts of key or value