Abstract handling string as a map.

Static methods in StringMap provide conversions between strings and a
map (associative array).