public static String toMapString(Map arg){
  return toMapString(arg,-1);
}

public static String toMapString ( Map arg ) { return toMapString ( arg , - 1 ) ; }
a helper method to return the string representation of a map with bracket boundaries " [ " and " ] " .
