Another attempt at formatting the string appropriately