Match keeps a copy of the input string, but input string mutates. 

Match keeps a copy of the input string, but input string mutates. Reset matcher on each loop. Fixes #3.