decodeBin converts a space-separated binary string (created by encodeBin) back into its original text representation.
decodeBin takes no parameters.
// Basic binary decoding
binStr = "1101000 1100101 1101100 1101100 1101111"
log binStr.decodeBin()
// "hello"
// Works with spaces
binStr = "1101000 1100101 1101100 1101100 1101111 100000 1110111 1101111 1110010 1101100 1100100"
log binStr.decodeBin()
// "hello world"
// Single character
binStr = "1000001"
log binStr.decodeBin()
// "A"
// Encode and decode round trip
original = "hello world"
encoded = original.encodeBin()
decoded = encoded.decodeBin()
log decoded
// "hello world"
// Empty string handling
log "".decodeBin()
// ""