fix log messages for masternode/activemasternode (and trim trailing spaces)