func reverseString(s string) string { n := len(s) runes := make([]rune, n) for _, r := range s { n-- runes[n] = r } return string(runes) }