partially working new string matching