I see you using echo -i

when wrapping text you need to add an N to that: echo -iN

for example: echo -i3