The following will replace a sequence of repeated character with a single character.
echo "Mary had a little lamb." | tr -s " "
The following will translate (convert) a whitespace to a newline.
ls | tr " " "\n"
This is similar to
ls | sed -e 's/ /\n/g'`
The following will translate (convert) a newline to a whitespace.
ls -1 | tr "\n" " "