Removing unnecessary spaces