添加字符串验证类