Added strings.TrimSpace around the result of searchXpath
Fixed variable names