func ValidateCreditorName(creditorAccount string) error {
	creditorAccount = strings.TrimSpace(creditorAccount)
	length := utf8.RuneCountInString(creditorAccount)
	if 1 > length || length > 140 {
		return ErrCreditorNameLengthOutOfRange
	}
	return nil
}
ValidateCreditorName - strings, between 1 and 140 chars
package swift
import (
	"errors"
	"regexp"
	"strings"
	"unicode/utf8"
)
var (
	ErrInvalidAnyBic                   = errors.New("bic number is not valid")
	ErrCreditorAccountLengthOutOfRange = errors.New("credit account length out of 1 to 34 range")
	ErrCreditorNameLengthOutOfRange    = errors.New("credit name length out of 1 to 140 range")
	ErrInvalidCountryCode              = errors.New("county code must contain only 2 uppercase symbols")
	reAnyBic      = regexp.MustCompile(`^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$`)
	reCountryCode = regexp.MustCompile(`^[A-Z]{2,2}$`)
)
func ValidateBic(anyBic string) error {
	if !reAnyBic.MatchString(anyBic) {
		return ErrInvalidAnyBic
	}
	return nil
}
func ValidateBicFi(bicFi string) error {
	return ValidateBic(bicFi)
}
func ValidateCreditorAccount(creditorAccount string) error {
	creditorAccount = strings.TrimSpace(creditorAccount)
	length := utf8.RuneCountInString(creditorAccount)
	if 1 > length || length > 34 {
		return ErrCreditorAccountLengthOutOfRange
	}
	return nil
}