Remove duplicate whitespace from chat messages