sed doesn't like the bash array, converting to string