SohissupportforliberalmeasuressoonalienatedtheconservativeelementsofMexicowhilenotendearinghimtotheliberalsunderJuarezwhowereoperatingagovernment-exileinthesouthofMexico.

Please segment the words:
So his support for liberal measures soon alienated the conservative elements of Mexico while not endearing him to the liberals under Juarez who were operating a government-exile in the south of Mexico.