format countries and trim enginetest