I think this concerns the Bash Shell knowledges. You should note while variables invoked. Especially the usage of quotes.
In my foregoing example, the two files content and table were located in root directory. Please recheck it. Meanwhile, we were sure that the script was working fine even containing space character.