I have string like "startofstr text1 middleofstr text2 endofstr"
How can I get text1 and text2 as different variable