Remove empty string in content array
Change to node.js module