built wordMap and charMap