Remove unwanted spaces in end of line