building the string containing the map