Added a flip string code