string match and regex build extracted from winnow_results
added unit test for string matching
clean compiled specs after testing
added spec for prototype