Figured out how to remove elements from an array. Next step is to join the remaining elements.