Do the numbers need to be separated by spaces?
Yes, the decoder splits on whitespace to identify individual code values. Without separators, "7210" is ambiguous — it could be codes 72 and 10, or 7, 2, 1, 0. Space-separated input removes this ambiguity.