Rearranges answer string