updated to decode incoming string within input buffer to save memory
increased input data buffer size from 32 to 64 bytes