add changeStringOrder method which can be used change a string's order