cleanUpOutput function

Clean up output based on geographic trimming