Removing debug info from core, and don't remove trailing spaces in msgs anymore