correct memory issue bedix string splitting