Added specialized charSW function