swap the given strings