Trim text from row

How to get the value before second space in the given string of dynamic row using xpath or Regex