Remove , split and trim the string

Hi All,
I am having the string
ex- (claim#-44455
property owner- senor frogs
date of loss- jan21,2019)
I want to get only claim#- 44455(get the only part before the property owner.so how can I use it . I have applied many ways of trim and split, but It doesn’t work

Hi @arpita2,

I think you have created a duplicate post as both are same, can you close this and refer the other one.

Fair point by @anil5, I closed the topic as a duplicate.