Using array for string decoding instead of map.