.DS_Store removed and formatting for output string