fix special character and space bug