Changed main data structure of storing g6 strings to a map