remove trailing whitespaces
spacecmd: remove unused import
spacecmd: leave string interpolation to the logging function