Python Check If Any Substring Java