Remove unwanted padding