title: Convert string to slice of string type
body: <p>In the code below when I inspect <code>s[i]</code> it gives me binary numbers instead of characters. Code still works but how can I get <code>s[i]</code> to return a character, while still using s type string as parameter?        </p>
  
  <pre><code>func main() {
  
          var ip string
          fmt.Println("Enter string:")
          fmt.Scanf("%s\n", &amp;ip)
          ip = strings.ToLower(ip)
          fmt.Println(isP(ip))
      }
      //Function to test if the string entered is a Palindrome
  
      func isP(s string) string {
          mid := len(s) / 2
          last := len(s) - 1
          for i := 0; i &lt; mid; i++ {
              if s[i] != s[last-i] {
                  return "NO. It's not a Palimdrome."
              }
          }
          return "YES! You've entered a Palindrome"
      }
  </code></pre>