Working completely now.

Fixed issue with empty strings be generated between matches.