func shouldStrip(b byte) bool {
	switch b {
	case '"', '\'', '\\', '/', '=', ',', '|':
		return true
	default:
		return false
	}
}
Is the character in the strippable list
package scan
import (
	"regexp"
	"strings"
	"golang.org/x/text/language"
	"golang.org/x/text/search"
)
func findHit(target string, CompiledPattern *regexp.Regexp) (isHit bool, retMatch string) {
	if target != "" {
		matchValue := CompiledPattern.FindString(target)
		if matchValue != "" {
			return true, prepareMatchValue(matchValue)
		}
	}
	return false, ""
}
func substringExistsInLines(fileLines []Line, str string) bool {
	reg := regexp.MustCompile("(?i)" + str)
	for _, line := range fileLines {
		if reg.MatchString(line.LineValue) {
			return true
		}
	}
	return false
}
func substringExistsInString(str string, substr string) bool {
	m := search.New(language.English, search.IgnoreCase)
	start, _ := m.IndexString(str, substr)
	return start >= 0
}
func prepareMatchValue(matchValue string) (isolatedValue string) {
	origMatchValue := matchValue
	if len(matchValue) > 0 && shouldStrip(matchValue[0]) {
		matchValue = matchValue[1:]
	}
	if len(matchValue) > 0 && shouldStrip(matchValue[len(matchValue)-1]) {
		matchValue = matchValue[:len(matchValue)-1]
	}
	if stringContainsQuotesTicks(matchValue) {
		return origMatchValue
	}
	return matchValue
}
func stringContainsQuotesTicks(s string) bool {
	if strings.Contains(s, "\"") || strings.Contains(s, "'") {
		return true
	}
	return false
}