remove extra spaces from WARNING