I would remove the declaration of the mapName veriable and just fold it in 
IMap<String, String> map = hz.getMap(randomString());