fix UNIX time and remove \n & double spaces in text