replace white space chars in log message