Refactored getModeString to getModeMsg.