white space trim for messages, improved import for the sake of node_modules