A twist on a familiar quote "If at first you don't succeed, give up" or a play on words or on a situation.
Most of the comedians jokes involved a play on words.
It is not only a play on words but also an effective rhetorical method which is widely used.
The advertising slogan was a play on words.