Text this: Evolutionarily stable strategies for defensive switching