Trim elements of the whitelist