Python Match Case Substring Concatenation