可以使用Go语言的内置函数strings.TrimSpace()来实现，代码如下：
func trimSpace(v string, b *string) error {
    *b = strings.TrimSpace(v)
    return nil
}
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence