question: public static void correctLocation ( JSONObject map ) { String location = map . has ( "location" ) ? ( String ) map . get ( "location" ) : null ; if ( location != null && location . length ( ) > 0 ) { String location_country = map . has ( "location_country" ) ? ( String ) map . get ( "location_country" ) : null ; if ( location_country != null && location_country . length ( ) > 0 ) { if ( location . endsWith ( ", " + location_country ) ) { location = location . substring ( 0 , location . length ( ) - location_country . length ( ) - 2 ) ; map . put ( "location" , location ) ; } } } }
target:  beautify given location information. This should only be called before an export is done, not for storage