Thread:Extension talk:Arrays/Not so pretty/reply

Looks like the last element in your array is an empty string? You could use  before printing.