Python Check If Any Substring In Stringbuilder