change method name to hash_characters

use each_char instead of scan.each