code: func OptString(l *State, index int, def string) string {
  	if l.IsNoneOrNil(index) {
  		return def
  	}
  	return CheckString(l, index)
  }
docs: // OptString returns the string at index if it is a string. If this argument is
  // absent or is nil, returns def. Otherwise, raises an error.