Preference .detcaption; delete unwanted spaces