Parses a string into a map
Specs:
Parses a string into a map.
It tokenizes each line (separated by \n) into structs, which are then parsed into the map structure.
\n