Updated to support ST3
Removing whitespace from the end of command output