string matchinf: use string.find instead of .match

set plain=true to disable patterns in string matching
fix errors in pr9