in reply to how do I swap 2 strings in a file?
Executable files are generally not position-independent which means you need to pad your replacement string to be the same length as the original string.