cleanup - trimming SQL coming from XML