Try, var object = star[0]; or, return (Template("How would i play {star[0]}.")); It may be having an issue with "object" being a system class, so you can also try another variable name. arg = star[0];