You'd need to check for cell value is equal to s and then set the number format to a custom format of:
;;;"SMS"

and then set another format for w using:
;;;"WhatsApp"