Changed boolMap with charMap.