if you have access to a tram thatd be the easiest/most accurate way to measure it.....if not the string method will work fine
all youd need to get it back where it belongs is a vice to hold your bike and you can bend it out by hand(or black of wood,prybar,etc,etc,) then go back and measure.repeat as needed until you get the same measurements on each side