Removed unnecessary breaks
Array to string conversion
Updated the data object printing