Fix for space between comma and stocks.

Also handles trailing comma. Adds doctests.
Merge pull request #11 from scraperwiki/space_in_input_fix

Fix for space between comma and stocks.