Python Match Case Substring In Java