Replace "var target = arg.GetString(1).ToLower();"

with "var target = arg.GetString(0).ToLower();"