how to separate string element into 3 string by using seprator