condense words to 3 arrrays and send copy of words searched to redis