MULTILINE WITH "TEXT" LINE STYLE

Hi Everyone, I have created a custom line style which is composed of dash and text. 

(see below photo)

I am using this line style in making multi-line which represents a cable trough in my layout, my problem is, this line style does not break in every corners of the multiline and the text will come out of the way and it does not look good. it looks like this (refer to photo below.)

How can I make the center "text" line breaks in every corner? 

Thank you.