I have this string
aa**b**qqidjwljd**p**fjem
I need to replace b by p and p by b
aa**p**qqidjwljd**b**fjem
the way I do this look like this
myvar.replace("b","1").replace("p","b").replace("1","p")
this is kind of really ugly
is there a better way?
edit
why ugly? because I have to decide/find an arbitrary set of characters that will work for any possible case