Segment a string in a array of str with a character or groups of characters which determinates the segment