bug fix: removed unnecessary commas from output string