Remove unnecessary spaces in line