I am using the [rc-switch library](https://github.com/sui77/rc-switch) for sending and receiving data. In rcswitch library, there is no method to send string data. I am using below method to send the string message in char buffer.


    send_string("Hello World!");
    ---------------------------

    void send_string(const char *str)
    {
    int i = 0;

    for (char *p = str; *p; p++ ) {
    mySwitch.send((i<<8) + *p, 16);
    i++;
    }
    mySwitch.send((i<<8) + 255, 16);
    }

And I am receiving is using this **Serial.print((char)mySwitch.getReceivedValue());** build in method. But I am getting this message.

    H
    H
    H
    e
    e
    e
    l
    l
    l
    l
    l
    l
    o
    o
    o
    
    
    
    W
    W
    W
    o
    o
    o
    l
    l
    l
    d
    d
    d
    !
    !
    !


Now how can I get my original message?