builds data-maps from strings