Thanks for the reply again.
My lecturer doesn't really helps us with assignments, we are expected to complete it without his help. How do I print the hashes of arrays that I encoded, with or without the specified search string (site name)? I don't know how to tell the computer what I want to convey, I need a little help here :(