fixed text-output. Missing : handling of \n and fixing handling of ' '