Trim setting's key before saving