remove the extra spaces