How do I delete extra spaces/carriage returns?

The following example will automatically delete extra carriage returns during a Receive from CNC command.

Receive Translate CharactersTranslate Action
\013Remove
\010Replace with \013\010