Copy strings.
- compile the scanning regexp once
remove variable left over from a refactor
Merge git://github.com/logstash/logstash