Trimming name and namespace fields before using.